package com.andaily.domain.dto.cooking;

import com.andaily.domain.cooking.settlement.UserSettlement;
import com.andaily.domain.dto.AbstractDTO;
import com.andaily.domain.user.User;

/**
 * @author Shengzhao Li
 */
public class UserSettlementDto extends AbstractDTO {

    private String amount;
    private String payableAmount;

    private String userNickName;
    private String userGuid;

    public UserSettlementDto() {
    }

    public UserSettlementDto(UserSettlement userSettlement) {
        this.guid = userSettlement.guid();
        this.amount = userSettlement.amount().toString();
        this.payableAmount = userSettlement.payableAmount().toString();

        User user = userSettlement.user();
        this.userGuid = user.guid();
        this.userNickName = user.nickName();
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getPayableAmount() {
        return payableAmount;
    }

    public void setPayableAmount(String payableAmount) {
        this.payableAmount = payableAmount;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public String getUserGuid() {
        return userGuid;
    }

    public void setUserGuid(String userGuid) {
        this.userGuid = userGuid;
    }

}
